#define _CRT_SECURE_NO_WARNINGS
#include "stack.h"

int main()
{
	Stack st;
	stackInit(&st);
	stackPush(&st, 1);
	printf("%d ", stackTop(&st));
	stackPush(&st, 2);
	printf("%d ", stackTop(&st));
	stackPush(&st, 3);
	printf("%d ", stackTop(&st));
	stackPush(&st, 4);
	printf("%d ", stackTop(&st));
	stackPop(&st);
	printf("%d ", stackTop(&st));
	stackPop(&st);
	printf("%d ", stackTop(&st));
	stackPop(&st);
	printf("%d ", stackTop(&st));
	stackDestroy(&st);

	
	return 0;
}